<template>
      <div class="week">
          <div class="tit">
              周末去哪儿
          </div>
          <div class="week_cont" v-for="(item,index) in weekData" :key="item.id">
            <img :src="item.imgUrl" alt="">
             <p>{{item.t1}}</p>
             <p>{{item.t2}}</p>
          </div>
      </div>
</template>
<script>
    export default {
        name: "Week",
        props:{
            weekData:Array
        },
        data(){
            return {
               // weekList:[
               //   {"id": "0001", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"},
               //   {"id": "0002", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg", "t1": "京城欢乐亲子游", "t2": "在帝都过周末，不仅仅是城中游"},
               //   {"id": "0003", "imgUrl": "http://img1.qunarzz.com/sight/source/1510/6e/1ea71e2f04e.jpg_r_640x214_aa6f091d.jpg", "t1": "京城有好泉", "t2": "在帝都过周末，不仅仅是城中游"},
               //   {"id": "0004", "imgUrl": "http://img1.qunarzz.com/sight/source/1505/aa/7baaf8a851d221.jpg_r_640x214_1431200f.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"}
               // ]
            }
        }
    }
</script>

<style lang="stylus" scoped>
   .week{
      background:#eaeaea;
      .tit{
          line-height :.4rem;
           padding-left:.13rem;
      }
     .week_cont{
       padding-bottom:.1rem;
        img{
           width:100%;
        }
        p:nth-of-type(1){
          margin-top:.1rem;
          padding-left :.05rem;
          line-height :.24rem;
          font-size :.14rem;
          color:#212121;
        }
         p:nth-of-type(2){
           padding-left :.05rem;
           line-height :.24rem;
           font-size :.12rem;
           color:#616161;
         }
     }
   }
</style>
